package com.danskin.wechat.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.danskin.wechat.entity.ProductGroupon;
import com.danskin.wechat.util.Page;

public interface ProductGrouponDao {

	void updateProductGroupon(ProductGroupon productGroupon);

	void saveProductGroupon(ProductGroupon productGroupon);

	List<ProductGroupon> queryProductGrouponSku(@Param("sku")String sku, @Param("type")String type,@Param("mpId")int mpId);

	List<ProductGroupon> listPagefindProductGrouponListAPI(Page page);

	List<ProductGroupon> queryProductGrouponListIsHot(@Param("appId")String appId);

	ProductGroupon findProductGrouponDetails(@Param("appId")String appId, @Param("id")String id);

	List<ProductGroupon> listPagefindProductGrouponList(Page page);

	ProductGroupon findProductGrouponbyId(@Param("id")String id);

	void deleteProductGrouponModel(@Param("id")String id);

	List<ProductGroupon> queryProductGrouponAPIList(@Param("appId")String appId, @Param("name")String name);

	ProductGroupon queryProductGrouponDetailedAPI(@Param("appId")String appId, @Param("id")String id);

}
